import java.util.Random;
import java.util.Scanner;

public class Text {
    public static void main(String[] args) {

        for (int i = 1; i <=100 ; i++) {
            int falg = 1;
            for (int j = 2; j < i; j++) {
                if(i%j == 0 ) {
                    falg=0;
                    break;
                }
            }
            if(falg  == 1){
                System.out.print(i+" ");
            }
        }
    }
    public static void main1(String[] args) {
        Random ran = new Random();
        int RanNum = ran.nextInt(100);
        Scanner sca = new Scanner(System.in);
        System.out.println("请输入数字");
        while (true){
            int InNum = sca.nextInt();
            if(InNum > RanNum){
                System.out.println("数字大了");
            }else if(InNum < RanNum){
                System.out.println("数字小了");
            }else{
                System.out.println("bingo");
                break;
            }
        }
    }
}
